<template>
    <div class="header">
        <div class="header-left">
            <div class="iconfont header-left-icon">&#xe624;</div>
        </div>
        <div class="header-input">
            <span class="iconfont">&#xe632;</span>
            <input type="text" placeholder="输入城市/景点/输入主题">
        </div>
        <div class="header-right">
            {{ city }}
            <span class="iconfont header-right-icon">&#xe64a;</span>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        city: {
            type: String,
            default: ''
        }
    }
}
</script>

<style lang="scss" scoped>
    @import 'css/varibles.scss';
    .header {
        display: flex;
        height: .86rem;
        line-height: .86rem;
        background-color: $bgColor;
        color: white;
        &-left {
            width: .64rem;
            float: left;
            &-icon {
                text-align: center;
                font-size: .4rem;
            }
        }
        &-input {
            flex: 1;
            background: white;
            border-radius: .1rem;
            margin-top: .12rem;
            height: .64rem;
            line-height: .60rem;
            margin-left: .2rem;
            color: #ddd;
            font-size: 15px;
            padding-left: .2rem;
            justify-content: space-around;
            >span {
                float: left;
            }
            >input {
                float: left;
                padding-left: 10px;
                height: 100%;
                width: calc(100% - 30px);
            }
        }
        &-right {
            width: 1.24rem;
            float: right;
            text-align: center;
            &-icon {
                font-size: .24rem;
                margin-left: -0.05rem;
            }
        }
    }
</style>